package com.jy.api.misc.dto;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 *数据集目录管理
 */
@Getter
@Setter
public class ShuJuJGLDto  {

    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "层级")
    private String cengJi;

    @ApiModelProperty(value = "数据集名称")
    private String shuJuJMC;

    @ApiModelProperty(value = "数据集代码")
    private String shuJuJDM;

    @ApiModelProperty(value = "数据集表名")
    private String tableName;

    @ApiModelProperty("主键字段JSON")
    private String zhuJianZD;

    @ApiModelProperty(value = "业务类型")
    private String yeWuLX;

    @ApiModelProperty(value = "业务类型名称")
    private String yeWuLXMC;

    @ApiModelProperty(value = "上级ID")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long shangJiID;

    @ApiModelProperty(value = "是否有下级 1是 0无")
    private Integer shiFouYXJ;

    @ApiModelProperty(value = "排序 从小到大")
    private Integer sort;

    @ApiModelProperty(value = "类型 1.接口类  2.标准类")
    private Integer type;

    @ApiModelProperty(value = "是否需要建表0否1是")
    private Integer shiFouJB;

    @ApiModelProperty(value = "描述")
    private String miaoShu;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date chuangJianSJ;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date xiuGaiSJ;

    
    @ApiModelProperty(value = "采集方式 0-etl 1-数据钩子 2-cdc 3-文档")
    private String caiJiFS;

    @ApiModelProperty(value = "是否可以修改数据集0否1是")
    private String isChange;

    @ApiModelProperty(value = "业务域")
    private String yeWuY;

    @ApiModelProperty(value = "业务子域")
    private String yeWuZY;

    private String shangJiMC;
    private List<ShuJuJGLDto> xiaJiLB;
    private Boolean shiFouXS;
}
